/*
 * Copyright (c) 2009, Jan Pastor. All Rights Reserved.
 */

package sk.jp.jitag.pok1;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

    private static final Logger log = LoggerFactory.getLogger(Main.class);

    private Main() {
    }

    //----------------------------------------------------------------------

    public static void main(String[] args){
        log.info("Pok1 @===");

        ApplicationContext ctx = new ClassPathXmlApplicationContext("spring.xml");

        log.info("Spring application context initialized");

        Pok1 pok1 = (Pok1) ctx.getBean("pok1");
        pok1.run();

        log.info("Pok1 ===/");
    }
}
